home *** CD-ROM | disk | FTP | other *** search
- class smashing.Renderable extends MovieClip
- {
- var mpX = 16777215;
- var mpY = 16777215;
- var mpZ = 16777215;
- var mpScale = 16777215;
- var mScale = 100;
- var changed = true;
- var scaleMod = 1;
- function Renderable()
- {
- super();
- }
- function set scale(n)
- {
- this._xscale = n;
- this._yscale = n;
- }
- function render()
- {
- var _loc2_ = smashing.Viewport.getPos(this);
- if(_loc2_ != undefined)
- {
- var _loc3_ = _loc2_.scale;
- if(_loc2_.x != undefined)
- {
- this._x = _loc2_.x * _loc3_ + smashing.Viewport.centerX;
- }
- if(_loc2_.y != undefined)
- {
- this._y = _loc2_.y * _loc3_ + smashing.Viewport.centerY;
- }
- if(_loc3_ != this.mpScale)
- {
- this.mpScale = _loc3_;
- this.scale = _loc3_ / this.scaleMod * 100;
- }
- }
- }
- }
-